from django.conf.urls import url, include
from . import views
from rest_framework.routers import DefaultRouter

router =DefaultRouter()

router.register(r'infos',views.AreasInfosView,base_name='areasinfos')

urlpatterns=[
    #一级视图路由
    # url(r'^infos/$',views.AreasProvinceView.as_view()),
    # url(r'^infos/(?P<id>\d{6})/$',views.AreasSubsCityView.as_view()),

    #二级视图路由
    # url(r'^infos/(?P<pk>\d{6})?$',views.AreasInfosView.as_view()),

    #视图集路由
    url(r'^',include(router.urls)),
]